home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Pascal / Snippets / PNL Libraries / Libraries / SpriteWorld / SpriteWorld files / Interfaces / SpriteCompiler.p < prev    next >
Text File  |  1996-11-02  |  1KB  |  41 lines

  1. unit SpriteCompiler;
  2.  
  3. interface
  4.  
  5.     uses
  6. {$IFC undefined THINK_Pascal}
  7.         Types, QuickDraw, 
  8. {$ENDC}
  9.         SWCommonHeaders, SpriteFrame, Sprite;
  10.  
  11. {/--------------------------------------------------------------------------------------}
  12. {    SpriteCompiler.h}
  13. {}
  14. {    Portions are copyright: © 1991-94 Tony Myles, All rights reserved worldwide.}
  15. {}
  16. {    Description:    constants, structures, and prototypes for the sprite compiler}
  17. {/--------------------------------------------------------------------------------------}
  18.  
  19. {$PUSH}
  20. {$ALIGN MAC68K}
  21.  
  22.     const
  23.         kMaxInstructionSize = 8;
  24.  
  25.  
  26.     function SWCompileSprite (srcSpriteP: SpritePtr): OSErr;
  27.     function SWCompileFrame (srcFrameP: FramePtr): OSErr;
  28.  
  29.     function SWParsePixels (maskStartAddrP: Ptr; var frameRect: Rect; numBytesPerRow: LongInt; var newPixCodeH: PixelCodeHdl): OSErr;
  30.     function SWCompileMaskScanLine (newPixCodeH: PixelCodeHdl; maskPixelP: Ptr; numberOfPixels: LongInt; isLastScanLine: Boolean): OSErr;
  31.     function SWGeneratePreamble (srcPixCodeH: PixelCodeHdl): OSErr;
  32.     function SWGeneratePostamble (srcPixCodeH: PixelCodeHdl): OSErr;
  33.  
  34. {$ALIGN RESET}
  35. {$POP}
  36.  
  37. {$IFC not undefined THINK_Pascal}
  38. implementation
  39. {$ENDC}
  40. end.
  41.